<!--  -->
<template>
  <section class="like-container">
    <dl>
      <dt>{{topContent.title}}</dt>
      <dd
        v-for="(item,index) of topContent.content"
        :key='index'
      >{{item}}</dd>
    </dl>
    <div class="content clearfix">
      <a
        href=""
        class="good"
        v-for="(item,index) of goods"
        :key=index
      >
        <img src="//p0.meituan.net/deal/__26218156__8593562.jpg@214w_120h_1e_1c">

        <p class="title">{{item.title}}</p>
        <p>{{item.pingjia}}</p>
        <p>{{item.address}}</p>
        <p class="price"><span class="price-icon">￥</span>{{item.price}}<span class="price-icon">起</span></p>
      </a>

    </div>

  </section>
</template>

<script>
export default {
  data() {
    return {
      topContent: {
        title: "猜你喜欢",
        content: ["为你甄选最合适的"]
      },
      goods: [
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        },
        {
          title: "金真子纸上烤肉（双桥店）",
          pingjia: "星星星星星星 16425个评价",
          address: "双桥",
          price: 58.0
        }
      ]
    };
  },

  components: {},

  computed: {},

  methods: {}
};
</script>
<style lang='scss' scoped>
.like-container {
  width: 1190px;
  background-color: #fff;
  margin: 40px auto;
  dl {
    width: 100%;
    height: 44px;
    line-height: 44px;
    color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: linear-gradient(
        to right,
        rgb(243, 182, 74) 2%,
        rgb(242, 197, 69) 97%
      )
      rgb(243, 182, 74);
    dd,
    dt {
      float: left;
      padding: 0 5px;
    }
    dt {
      font-size: 18px;
      margin-left: 13px;
      margin-right: 10px;
    }
  }
  div {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: space-between;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-sizing: border-box;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px;
    a {
      width: 20%;
      box-sizing: border-box;
      padding: 10px;
      height: 246px;
      position: relative;
      &:hover {
        background: #f4f4f4;
        -webkit-transition: background-color 0.5s;
        -ms-transition: background-color 0.5s;
        transition: background-color 0.5s;
        border-radius: 4px;
      }
      img {
        border-radius: 4px;
      }
    }
  }
}
.clearfix {
  overflow: auto;
  _height: 1%;
}
</style>
